<table border="0" cellspacing="0" cellpadding="0" width="150">
	<tr>
		<td align="center" style="padding-right: 5px;"><span class="table_header"><%= t('rank') %></span></td>
		<td style="padding-left: 3px;"><span class="table_header"><%= t('time.yday') %></span></td>		
		<td style="padding-left: 3px;"><span class="table_header"><%= t('time.week') %></span></td>
		<td style="padding-left: 3px;"><span class="table_header"><%= t('time.month') %></span></td>
	</tr>
	<tr>
		<% if priority.status == 'buried' %>
			<td valign="top" align="center" colspan="4">
				<div class="position_nochange"><%= t('buried')%></div>
			</td>
		<% elsif priority.status == 'inactive' %>
			<td valign="top" align="center" colspan="4">
				<div class="priority_inactive">
					<%= official_status(priority) %>
				</div>
			</td>		
		<% else %>
			<td valign="top" align="right" width="30" style="padding-right: 5px;">
				<div class="priority_position" title="<%= t('priorities.position.title', :position => priority.position, :government_name => current_government.name) %>">
					<% if priority.position != 0 %>
						<% if priority.position > 999 %>
							<span style="font-size: 0.8em;"><%= priority.position %></span>
						<% else %>
							<%= priority.position %>
						<% end %>
					<% end %>
				</div>
			</td>
			<% if priority.is_new? %>
			<td valign="top" align="center" colspan="3">
				<div class="position_new"><%= t('new') %></div>
			</td>
			<% elsif priority.position_7days_change == 0 and priority.position_30days_change == 0 and priority.position_24hr_change == 0 %>
			<td valign="top" align="center" colspan="3">
				<div class="position_nochange" title="<%= t('priorities.position.nochange') %>"><%= t('unch').upcase %></div>
			</td>		
			<% else %>
			<td valign="top" align="center" style="padding-left: 2px;">
				<% if priority.position_24hr_change > 0 %>
					<div class="position_up" title="<%= t('priorities.position.up.24hr', :count => priority.position_24hr_change.abs) %>"><%= priority.position_24hr_change.abs %></div>
				<% elsif priority.position_24hr_change < 0 %>
					<div class="position_down" title="<%= t('priorities.position.down.24hr', :count => priority.position_24hr_change.abs) %>"><%= priority.position_24hr_change.abs %></div>
				<% end %>
			</td>			
			<td valign="top" align="center" style="padding-left: 2px;">
				<% if priority.position_7days_change > 0 %>
					<div class="position_up" title="<%= t('priorities.position.up.7days', :count => priority.position_7days_change.abs) %>"><%= priority.position_7days_change.abs %></div>
				<% elsif priority.position_7days_change < 0 %>
					<div class="position_down" title="<%= t('priorities.position.down.7days', :count => priority.position_7days_change.abs) %>"><%= priority.position_7days_change.abs %></div>
				<% end %>
			</td>
			<td valign="top" align="center" style="padding-left: 3px;">
				<% if priority.position_30days_change > 0 %>
					<div class="position_up" title="<%= t('priorities.position.up.30days', :count => priority.position_30days_change.abs) %>"><%= priority.position_30days_change.abs %></div>
				<% elsif priority.position_30days_change < 0 %>
					<div class="position_down" title="<%= t('priorities.position.down.30days', :count => priority.position_30days_change.abs) %>"><%= priority.position_30days_change.abs %></div>
				<% end %>
			</td>		
			<% end %>			
		<% end %>				
		
	</tr>
</table>


